*This is the Stata code for Varian, B. D., 'Effective rates of protection in an industrialising, settler economy: estimates for Victoria (Australia) in 1880', forthcoming in Economic Papers (2025).*

*Please adjust the file pathway as appropriate.*

use Varian_EconomicPapers_2025_StataData.dta

*Table 2 Correlations*

pwcorr nominal erp if politycode == 2 & year == 1870, sig
spearman nominal erp if politycode == 2 & year == 1870, stats(rho p)
pwcorr nominal erp if politycode == 2 & year == 1890, sig
spearman nominal erp if politycode == 2 & year == 1890, stats(rho p)							   
pwcorr nominal erp if politycode == 2 & year == 1900, sig
spearman nominal erp if politycode == 2 & year == 1900, stats(rho p)
pwcorr nominal erp if politycode == 2 & year == 1913, sig
spearman nominal erp if politycode == 2 & year == 1913, stats(rho p)
pwcorr nominal erp if politycode == 3 & year == 1879, sig
spearman nominal erp if politycode == 3 & year == 1879, stats(rho p)
pwcorr nominal erp if politycode == 3 & year == 1889, sig
spearman nominal erp if politycode == 3 & year == 1889, stats(rho p)
pwcorr nominal erp if politycode == 3 & year == 1899, sig
spearman nominal erp if politycode == 3 & year == 1899, stats(rho p)
pwcorr nominal erp if politycode == 3 & year == 1904, sig
spearman nominal erp if politycode == 3 & year == 1904, stats(rho p)
pwcorr nominal erp if politycode == 1 & year == 1880, sig
spearman nominal erp if politycode == 1 & year == 1880, stats(rho p)
pwcorr nominal erp if politycode == 2 & year == 1870 & erp <= 5, sig
spearman nominal erp if politycode == 2 & year == 1870 & erp <= 5, stats(rho p)
pwcorr nominal erp if politycode == 2 & year == 1890 & erp <= 5, sig
spearman nominal erp if politycode == 2 & year == 1890 & erp <= 5, stats(rho p)
pwcorr nominal erp if politycode == 2 & year == 1900 & erp <= 5, sig
spearman nominal erp if politycode == 2 & year == 1900 & erp <= 5, stats(rho p)
pwcorr nominal erp if politycode == 2 & year == 1913 & erp <= 5, sig
spearman nominal erp if politycode == 2 & year == 1913 & erp <= 5, stats(rho p)
pwcorr nominal erp if politycode == 3 & year == 1879 & erp <= 5, sig
spearman nominal erp if politycode == 3 & year == 1879 & erp <= 5, stats(rho p)
pwcorr nominal erp if politycode == 3 & year == 1889 & erp <= 5, sig
spearman nominal erp if politycode == 3 & year == 1889 & erp <= 5, stats(rho p)
pwcorr nominal erp if politycode == 3 & year == 1899 & erp <= 5, sig
spearman nominal erp if politycode == 3 & year == 1899 & erp <= 5, stats(rho p)
pwcorr nominal erp if politycode == 3 & year == 1904 & erp <= 5, sig
spearman nominal erp if politycode == 3 & year == 1904 & erp <= 5, stats(rho p)
pwcorr nominal erp if politycode == 1 & year == 1880 & erp <= 5, sig
spearman nominal erp if politycode == 1 & year == 1880 & erp <= 5, stats(rho p)

*Table 4 Correlations*

pwcorr nominal erp if politycode == 1, sig
spearman nominal erp if politycode == 1, stats (rho p)
pwcorr nominal erp if politycode == 1 & upperhalf_valueadded == 1, sig
spearman nominal erp if politycode == 1 & upperhalf_valueadded == 1, stats (rho p)
pwcorr nominal erp if politycode == 1 & lowerhalf_valueadded == 1, sig
spearman nominal erp if politycode == 1 & lowerhalf_valueadded == 1, stats (rho p)
pwcorr nominal erp if politycode == 1 & interquartile_valueadded == 1, sig
spearman nominal erp if politycode == 1 & interquartile_valueadded == 1, stats (rho p)

*In-text Correlations*

pwcorr erp valueadded if politycode == 1, sig
pwcorr erp valueadded if politycode == 1 & erp <= 1, sig
pwcorr erp importedshare if politycode == 1, sig
pwcorr erp importedshare if politycode == 1 & erp <= 1, sig

